package com.sharefang.aproject.bean;

import java.util.List;

/**
 * Created by Administrator on 2016/7/28.
 */

public class BaseBean<T> {
    private int code;
    private String errorInfo;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getErrorInfo() {
        return errorInfo;
    }

    public void setErrorInfo(String errorInfo) {
        this.errorInfo = errorInfo;
    }

    private T data;

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return "BaseBean{" +
                "code = " + code +
                ", data = " + (data == null ? "" : data.toString()) +
                ", errorInfo = " + errorInfo +
                "}";
    }
}
